/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package queenb.web.organization.store;
import java.sql.SQLException;
import queenb.web.organization.inf.N450Inf;
import queenb.net.entitybean.N450;
import queenb.web.util.PackageContants;
import queenb.net.datacontrol.DataStatement;
import queenb.net.datacontrol.Param;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import oracle.jdbc.OracleTypes;
/**
 *
 * @author Nguyen Hung
 */
public class N450Store extends N450 implements N450Inf{
    @Override
    public List<N450> COMBTABN450(int pnFH000, int pnFH200, String pvLOGIN) {
         try {
            DataStatement data = new DataStatement(PackageContants.COMTAB_N450, OracleTypes.CURSOR, new Param[]{
                        new Param(OracleTypes.INTEGER, pnFH000),
                        new Param(OracleTypes.INTEGER, pnFH200),                                      
                        new Param(OracleTypes.CHAR, pvLOGIN)
                    });
            return super.find(data, N450.class);
        } catch (SQLException ex) {
            Logger.getLogger(N450Store.class.getName()).log(Level.SEVERE, null, ex);
            return null;
        } catch (InstantiationException ex) {
            Logger.getLogger(N450Store.class.getName()).log(Level.SEVERE, null, ex);
            return null;
        } catch (IllegalAccessException ex) {
            Logger.getLogger(N450Store.class.getName()).log(Level.SEVERE, null, ex);
            return null;
        }
    }
}
